package com.lwl.controller.scl;


import com.lwl.entity.LayData;
import com.lwl.entity.scl.TSclRecordDetails;
import com.lwl.service.scl.TSclRecordDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * (TSclRecordDetails)表控制层
 *
 * @author makejava
 * @since 2022-10-28 21:44:03
 */
@RestController
@RequestMapping("tSclRecordDetails")
public class TSclRecordDetailsController {
    /**
     * 服务对象
     */
    @Autowired
    private TSclRecordDetailsService tSclRecordDetailsService;

    /*
        添加做题详情
     */
    @PostMapping("addRecordDetails")
    //@RequestBody把json字符串转化为对象
    public LayData addRecordDetails(@RequestBody List<TSclRecordDetails> tSclRecordDetails){
        Boolean i = tSclRecordDetailsService.addRecordDetails(tSclRecordDetails);
        return new LayData(i);
    }
}
